package com.wzh.project.webservice.service;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

import com.wzh.project.common.bean.BaseReqBean;
import com.wzh.project.common.bean.BaseResBean;
/**
 * 暴露的service
 * @author wzh
 *
 */
@WebService
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class WebServiceHello3 {

	public BaseResBean get(@WebParam(name = "reqBean")BaseReqBean reqBean) {
		String name=reqBean.getName();
		int age=reqBean.getAge();
		System.out.println("hello3,"+name+" age:"+age);
		BaseResBean resBean=new BaseResBean();
		resBean.setAge(reqBean.getAge()+24);
		resBean.setName("name:"+reqBean.getName());
		resBean.setUuid("uuid:"+reqBean.getUuid());
		return resBean;
	}
	
	public String test() {
		System.out.println("test,");
		return "hello,test";
	}
}
